package com.ict.web.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 抽取监控对象 yzq_extract_monitoring
 * 
 * @author xc
 * @date 2022-04-27
 */
@ToString
@Data
@Accessors(chain = true)
@TableName("yzq_extract_monitoring")
@NoArgsConstructor
@AllArgsConstructor
public class ExtractMonitoring extends Model<ExtractMonitoring> implements Serializable
{
    private static final long serialVersionUID = 1L;

    /**抽取类型{1：统一抽取 }*/
    public final static String EXTRACT_TYPE_UNIFY = "1";
    /**抽取类型{2：更换专家}*/
    public final static String EXTRACT_TYPE_EXCHANGE = "2";

    /**抽取结果{1：发送专家接受 } */
    public final static String EXTRACT_RESULT_SEND = "1";
    /**抽取结果{2：重新抽取} */
    public final static String EXTRACT_TYPE_AGAIN = "2";

    /** 抽取监控id */
    @ApiModelProperty(value = "抽取监控id")
    @TableId(value = "extract_monitoring_id",type= IdType.AUTO)
    private Long extractMonitoringId;

    /** 项目id */
    @ApiModelProperty(value = "项目id")
    private Long proId;

    /** 年度id */
    @ApiModelProperty(value = "年度id")
    private Long planId;

    /** 评审任务id */
    @ApiModelProperty(value = "评审任务id")
    private Long reviewTaskId;

    /** 评审任务名字 */
    @ApiModelProperty(value = "评审任务名字")
    private String taskName;

    /** 规则信息 */
    @ApiModelProperty(value = "规则信息")
    private String ruleInformation;

    /** 专家信息 */
    @ApiModelProperty(value = "专家信息")
    private String expertInformation;

    /** 抽取时间 */
    @ApiModelProperty(value = "抽取时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime extractTime;

    /** 抽取次数{0、1、2} */
    @ApiModelProperty(value = "抽取次数{0、1、2}")
    private String extractFrequency;

    /** 抽取类型{1：统一抽取 2：更换专家} */
    @ApiModelProperty(value = "抽取类型{1：统一抽取 2：更换专家}")
    private String extractType;

    /** 抽取结果{1：发送专家接受 2：重新抽取} */
    @ApiModelProperty(value = "抽取结果{1：发送专家接受 2：重新抽取}")
    private String extractResult;

    /** 抽取单位 */
    @ApiModelProperty(value = "抽取单位")
    private String extractUnit;

    /** 抽取操作人 */
    @ApiModelProperty(value = "抽取操作人")
    private String extractPeople;

    /** 抽取专家人数 */
    @ApiModelProperty(value = "抽取专家人数")
    private String extractNum;

    /** 删除状态 0 未删除 1 删除 */
    @ApiModelProperty(value = "抽取操作人")
    private String delFlag;

    /** 抽取表id */
    @ApiModelProperty(value = "抽取表id")
    private Long extractExpertId;
}
